package com.tt.job;

import com.tt.job.api.Job;
import com.tt.job.api.JobMode;
import com.tt.job.api.JobParameterInfo;
import com.tt.job.api.schedule.ScheduleType;
import com.tt.job.api.type.JobType;

import java.util.List;
import java.util.Set;

public class JobInfo implements Job {
    private String description;
    private String jobClass;
    private List<JobParameterInfo> jobParameters;
    private Set<ScheduleType> jobSupportScheduleType;
    private JobMode mode;
    private String name;
    private JobType type;

    @Override
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public List<JobParameterInfo> getJobParameters() {
        return jobParameters;
    }

    @Override
    public Set<ScheduleType> getJobSupportScheduleType() {
        return jobSupportScheduleType;
    }

    public void setJobSupportScheduleType(Set<ScheduleType> jobSupportScheduleType) {
        this.jobSupportScheduleType = jobSupportScheduleType;
    }

    @Override
    public JobMode getMode() {
        return mode;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public JobType getType() {
        return type;
    }

    public void setType(JobType type) {
        this.type = type;
    }

    public void setJobParameters(List<JobParameterInfo> jobParameters) {
        this.jobParameters = jobParameters;
    }

    public String getJobClass() {
        return jobClass;
    }

    public void setJobClass(String jobClass) {
        this.jobClass = jobClass;
    }
}
